@import '~@/styles/variables.less';
@import '~@/styles/animation.less';

.playlist-mask-enter,
.playlist-mask-leave-to {
  opacity: 0;
}

.playlist-mask-enter-to,
.playlist-mask-leave {
  opacity: 1;
}

.playlist-wrapper-enter,
.playlist-wrapper-leave-to {
  transform: translateX(100%);
}

.playlist-wrapper-enter-to,
.playlist-wrapper-leave {
  transform: translateX(0);
}

.playlist-box {
  position: relative;
  z-index: 748943649;
}

.playlist-wrapper {
  width: 300px;
  height: calc(100vh - @player-wrapper-height);
  position: fixed;
  right: 0;
  background-color: @player-wrapper-background;
  transition: transform 0.3s;
  color: @player-wrapper-color;
  box-shadow: -1px -2px 3px @player-wrapper-background;
  user-select: none;
  overflow: auto;
}

.playlist-mask {
  width: 100vw;
  height: calc(100vh - @player-wrapper-height);
  position: fixed;
  top: 0;
  left: 0;
  transition: opacity 0.3s;
  background-color: rgba(0, 0, 0, 0.2);
}

.item-t-s:hover {
  text-shadow: 0 0 5px @player-wrapper-color;
}

.wrapper-audio-box {
  display: flex;
  justify-content: space-between;
  padding: 10px 5px;
  border-bottom: 1px solid darken(@player-wrapper-background, 10%);
  font-size: 12px;

  .wrapper-audio {
    width: calc(100% - 80px);
    max-width: calc(100% - 80px);
    display: flex;
  }

  .audio-cover {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 4px;
    margin-right: 10px;
  }

  .audio-info-wrapper {
    height: 34px;
    max-width: calc(100% - 44px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .audio-info {
      display: flex;
      user-select: text;

      >div {
        margin-right: 10px;
        white-space: nowrap;
        cursor: pointer;
        overflow: hidden;

        &:last-child {
          margin-right: 0;
        }

        >span.active {
          position: relative;
          animation: name-move 8s 0.5s infinite linear;
        }
      }

      .audio-name {
        max-width: 70%;
      }
    }

    .audio-other {
      display: flex;
      transform-origin: bottom left;
      transform: scale(0.8);
      justify-content: flex-start;
      pointer-events: none;

      >div {
        margin-right: 5px;
      }
    }
  }

  .wrapper-controller {
    width: 80px;
    display: flex;
    align-items: flex-end;

    .item-controller-btn {
      margin: 0 5px;
      cursor: pointer;
    }
  }
}